package com.oracle.malldemo.service.impl;

import com.oracle.malldemo.dao.OrderMainDao;
import com.oracle.malldemo.dao.impl.OrderMainDaoImpl;
import com.oracle.malldemo.domain.OrderMain;
import com.oracle.malldemo.service.OrderMainService;
import com.oracle.malldemo.view.Cart;

public class OrderMainServiceImpl implements OrderMainService {

    private OrderMainDao orderMainDao = new OrderMainDaoImpl();

    @Override
    public String saveOrder(Cart cart) {
        return orderMainDao.saveOrder(cart);

    }

    @Override
    public OrderMain queryOrderMainByOid(String oid) {
        return orderMainDao.queryOrderMainByOid(oid);
    }
}
